function getAllDCList() {
	var type = 0;
	var state = 0;
	var fatherId = "";
	runDcListAjax(type, fatherId, state);

}
function getDCListByCity(fatherId) {
	var type = 1;
	var state = 0;
	getBuildingInfo(fatherId);
	runDcListAjax(type, fatherId, state);
}
function getDCListByBuilding(fatherId) {
	var type = 2;
	var state = 0;
	getFloorInfo(fatherId);
	runDcListAjax(type, fatherId, state);
}
function getDCListByFloor(fatherId) {
	var type = 3;
	var state = 0;
	runDcListAjax(type, fatherId, state);
}
function getDCListByManager(fatherId) {
	var type = 4;
	var state = 0;
	runDcListAjax(type, fatherId, state);
}
function getDCListByState(state) {
	var type = 5;
	var fatherId = "";
	runDcListAjax(type, fatherId, state);
}
function runDcListAjax(type, fatherId, state) {
	//Get dc list table.
	var dclist = document.getElementById("dclist");

	var url = "dcmanager/dcListTable.do";

	var params = {
		type : type,
		fatherId : fatherId,
		state : state
	}

	//Ajax post.
	$.post(url, params, function(data) {
		dclist.innerHTML = data;
	});
}
